package com.qf.zhouce0630.service.impl;

import com.qf.zhouce0630.entity.Product;
import com.qf.zhouce0630.repository.ProductRepository;
import com.qf.zhouce0630.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author UNIQ7xi
 * @Date 2023/6/30 20:07
 * @Version v1.8
 **/
@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductRepository productRepository;

    @Override
    public void saveAllProducts(List<Product> productList) {
        productRepository.saveAll(productList);
    }
}
